body {
  font-family: "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

ul,
li {
  margin: 0;
  padding: 0;
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.page {
  width: 375px;
  height: 812px;
  box-shadow: 0px 4px 16px 0px
    rgba(0, 0, 0, 0.1);
  margin: 48px 0;
}

/* 背景 */
.main-panel {
  background: #0061c4;
  max-height: 100%;
  display: flex;
  flex-direction: column;
}

/* 导航 */
nav {
  padding: 48px 24px 30px 24px;
}

.buttons {
  display: flex;
  justify-content: space-between;
  color: white;
}

.menu {
  display: flex;
  justify-content: space-between;
}

.menu li {
  list-style: none;
  color: rgba(255, 255, 255, 0.68);
  font-size: 18px;
  margin-top: 48px;
}

.menu .active {
  color: white;
}

/* 常用联系人 */
.middle-panel {
  background: #f2f8fc;
  border-radius: 34px;
  padding: 30px 24px 100px 24px;
  margin-bottom: -80px;
}

.favorite-menu {
  display: flex;
  justify-content: space-between;
}

.favorite-menu span {
  font-size: 16px;
  color: #6f6f6f;
}

.favorite-menu i.fas {
  color: #6f6f6f;
}

.people {
  display: flex;
  justify-content: space-between;
  overflow: auto;
  flex-shrink: 0;
  margin-right: -20px;
}

.profile {
  text-align: center;
  padding: 20px 10px 0 20px;
}

.profile:first-child {
  padding-left: 0;
}
.profile:last-child {
  padding-right: 0;
}

.profile img,
.message img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.profile .profile-name {
  font-size: 14px;
  color: #a5a9ad;
  margin-top: 6px;
}

/* 聊天面板 */
.message-panel {
  background: white;
  position: relative;
  border-radius: 48px 48px 0 0;
  overflow: hidden;
  display: flex;
}

.mask {
  width: 100%;
  height: 64px;
  border-radius: 48px 48px 0 0;
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.6) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  position: absolute;
}

.messages {
  overflow: auto;
  padding-right: 12px;
  padding-bottom: 24px;
}

.message {
  display: flex;
  align-items: center;
  padding: 10px 12px 10px 24px;
}

.message .info {
  flex: 4;
  padding-left: 20px;
  font-size: 14px;
  min-width: 0;
}

.message .info .name {
  color: #a5a9ad;
  padding-bottom: 8px;
}

.message .info .content {
  color: #657081;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.message .time {
  flex: 1;
  font-size: 14px;
  color: #858a98;
  padding-top: 4px;
  align-self: flex-start;
  text-align: right;
}

.message.new {
  background: rgba(27, 131, 246, 0.05);
  border-radius: 0 24px 24px 0;
}

.message .new-message-icon {
  background: rgba(239, 102, 102, 1);
  border-radius: 7px;
  font-size: 12px;
  color: white;
  padding: 3px 6px;
  margin-top: 6px;
}
